# Contributor: Cássio Ávila <cassioavila@yandex.com>
# Maintainer: Cássio Ávila <cassioavila@yandex.com>
pkgname=cmusfm
pkgver=0.5.0
pkgrel=0
pkgdesc="Last.fm standalone scrobbler for the cmus music player"
url="https://github.com/Arkq/cmusfm"
arch="all !s390x" # 1 test fails
license="GPL-3.0-or-later"
depends="cmus"
makedepends="autoconf automake curl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Arkq/cmusfm/archive/refs/tags/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure --prefix /usr --build=$CBUILD --host=$CHOST
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
497ba0c9f776b8d2f11934a5dbc2ea4b4971511f3c3c4df602d1742ba5fcaf4c0f91d5f8a1ebe849e184718e7090fcf146560445398e85f97722bb62c0976fd3  cmusfm-0.5.0.tar.gz
"
